using System;
using System.Collections.Generic;

namespace Daniel.Core.Models
{
    public partial class Address
    {
        public Address()
        {
            this.Affiliates = new List<Affiliate>();
            this.Customers = new List<Customer>();
            this.Customers1 = new List<Customer>();
            this.Orders = new List<Order>();
            this.Orders1 = new List<Order>();
            this.Customers2 = new List<Customer>();
        }

        public int Id { get; set; }
        public string FirstName { get; set; }
        public string LastName { get; set; }
        public string Email { get; set; }
        public string Company { get; set; }
        public Nullable<int> CountryId { get; set; }
        public Nullable<int> StateProvinceId { get; set; }
        public string City { get; set; }
        public string Address1 { get; set; }
        public string Address2 { get; set; }
        public string ZipPostalCode { get; set; }
        public string PhoneNumber { get; set; }
        public string FaxNumber { get; set; }
        public System.DateTime CreatedOnUtc { get; set; }
        public virtual Country Country { get; set; }
        public virtual StateProvince StateProvince { get; set; }
        public virtual ICollection<Affiliate> Affiliates { get; set; }
        public virtual ICollection<Customer> Customers { get; set; }
        public virtual ICollection<Customer> Customers1 { get; set; }
        public virtual ICollection<Order> Orders { get; set; }
        public virtual ICollection<Order> Orders1 { get; set; }
        public virtual ICollection<Customer> Customers2 { get; set; }
    }
}
